package practice2;


public class MyAction {
	
	MyService myService; //声明接口
	
	public void setMyService(MyService service) {
		this.myService = service;
	}
	
	public void execute() throws Exception{
		String param = " data from request ";
		myService.doSomething(param);
	}

}
